﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Base.Master" AutoEventWireup="true" CodeBehind="EditSelfPassword.aspx.cs" Inherits="QuickLifeHall.ERP.Pages.SystemBase.User.EditSelfPassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>修改密码</title>
    <script type="text/javascript">
        $(function () {
            
        })

        function _valid() {
            return $('.easyui-validatebox').validatebox('isValid');
        }

        function _save() {
            if (_valid()) {
                QuickLifeHall.Facade.SystemBase.User.EditSelfPassword($("#Password").val(), function (result) {
                    if (result != null && result.value) {
                        alert(result.value.message);
                    }
                    else {
                        alert(result.error.Message)
                    }
                });
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="toolbar">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-save" plain="true"
            onclick="_save()">保存</a>
    </div>
    <div class="row">
        <span class="title">新密码：</span>
        <input type="password" id="Password" value="" style="width: 150px;" class="easyui-textbox  easyui-validatebox"
            required="true" />
    </div>
    <div class="row">
        <span class="title">密码确认：</span>
        <input type="password" id="RePassword" value="" style="width: 150px;" class="easyui-textbox  easyui-validatebox"
            required="true" validtype="equal['#Password']" />
    </div>
</asp:Content>
